<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title></title>
    <script type="text/javascript" src="../assets/js/vue.2.0.1.js"></script>
</head>

<body>
    <h2>v-bind 处理HTML中的标签属性</h2>
    <div id="app">

        <div>
            <img v-bind:src="imgurl" width="200px">
        </div>
        <div>
            <img :src="imgurl" width="200px">
        </div>
    </div>
    <script type="text/javascript">
        var app = new Vue({
            el: '#app',
            data: {
                imgurl: 'http://mynote6026.oss-cn-shanghai.aliyuncs.com/2018-07-06-134929.png'
            }
        })
    </script>
</body>

</html>